<?php
/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Tdcpg\V20211118\Models;
use TencentCloud\Common\AbstractModel;

/**
 * ModifyClusterInstancesSpec请求参数结构体
 *
 * @method string getClusterId() 获取集群ID
 * @method void setClusterId(string $ClusterId) 设置集群ID
 * @method array getInstanceIdSet() 获取实例ID列表，目前只支持单个实例修改
 * @method void setInstanceIdSet(array $InstanceIdSet) 设置实例ID列表，目前只支持单个实例修改
 * @method integer getCPU() 获取修改后的CPU核数。取值参考文档【购买指南】
 * @method void setCPU(integer $CPU) 设置修改后的CPU核数。取值参考文档【购买指南】
 * @method integer getMemory() 获取修改后的内存大小，单位GiB。取值参考文档【购买指南】
 * @method void setMemory(integer $Memory) 设置修改后的内存大小，单位GiB。取值参考文档【购买指南】
 * @method string getOperationTiming() 获取操作时机
 - IMMEDIATE：立即执行 
 - MAINTAIN_PERIOD：维护窗口期执行
 * @method void setOperationTiming(string $OperationTiming) 设置操作时机
 - IMMEDIATE：立即执行 
 - MAINTAIN_PERIOD：维护窗口期执行
 */
class ModifyClusterInstancesSpecRequest extends AbstractModel
{
    /**
     * @var string 集群ID
     */
    public $ClusterId;

    /**
     * @var array 实例ID列表，目前只支持单个实例修改
     */
    public $InstanceIdSet;

    /**
     * @var integer 修改后的CPU核数。取值参考文档【购买指南】
     */
    public $CPU;

    /**
     * @var integer 修改后的内存大小，单位GiB。取值参考文档【购买指南】
     */
    public $Memory;

    /**
     * @var string 操作时机
 - IMMEDIATE：立即执行 
 - MAINTAIN_PERIOD：维护窗口期执行
     */
    public $OperationTiming;

    /**
     * @param string $ClusterId 集群ID
     * @param array $InstanceIdSet 实例ID列表，目前只支持单个实例修改
     * @param integer $CPU 修改后的CPU核数。取值参考文档【购买指南】
     * @param integer $Memory 修改后的内存大小，单位GiB。取值参考文档【购买指南】
     * @param string $OperationTiming 操作时机
 - IMMEDIATE：立即执行 
 - MAINTAIN_PERIOD：维护窗口期执行
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("ClusterId",$param) and $param["ClusterId"] !== null) {
            $this->ClusterId = $param["ClusterId"];
        }

        if (array_key_exists("InstanceIdSet",$param) and $param["InstanceIdSet"] !== null) {
            $this->InstanceIdSet = $param["InstanceIdSet"];
        }

        if (array_key_exists("CPU",$param) and $param["CPU"] !== null) {
            $this->CPU = $param["CPU"];
        }

        if (array_key_exists("Memory",$param) and $param["Memory"] !== null) {
            $this->Memory = $param["Memory"];
        }

        if (array_key_exists("OperationTiming",$param) and $param["OperationTiming"] !== null) {
            $this->OperationTiming = $param["OperationTiming"];
        }
    }
}
